x86: add a way to obtain the needed number of memory map entries
authorJuergen Gross <jgross@suse.com>
Wed, 7 Dec 2016 13:03:08 +0000 (14:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 7 Dec 2016 13:03:08 +0000 (14:03 +0100)
commitf343852c5e930ba099a635909878afc66f0dce1b
tree1c185be042b03b186d7c5bfb6b301c2277b02989
parentf4497d6b747864bb2c2455055d27462e98dcb83e
x86: add a way to obtain the needed number of memory map entries

Today there is no way for a domain to obtain the number of entries of
the machine memory map returned by XENMEM_machine_memory_map hypercall.

Modify the interface to return just the needed number of map entries
in case the buffer was specified as NULL.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm.c
xen/include/public/memory.h